package test;

import java.io.IOException;
import java.net.UnknownHostException;

import Client.C.Service.ClientService;
import Service.M.Socket.ATMService;

public class testCon {

	public static void main(String[] args) throws UnknownHostException, IOException {
		
		new Thread(){
			@Override
			public void run() {
				ATMService server=new ATMService();
				server.start();
			}
		}.start();
		ClientService client=new ClientService();
		client.setIP("localhost",8008);
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		System.out.println(client.login("123456", "123456"));
		System.out.println(client.queryMoney());
		client.disLogin();
		client.quit();
	}

}
